﻿namespace Grove.Cards.Usg
{
	using System.Collections.Generic;
	using Grove.Core;
	using Grove.Core.Ai;
	using Grove.Core.Details.Cards;
	using Grove.Core.Details.Cards.Modifiers;
	using Grove.Core.Dsl;

	public class Bedlam : CardsSource
  {
    public override IEnumerable<ICardFactory> GetCards()
    {
      yield return C.Card
        .Named("Bedlam")
        .ManaCost("{2}{R}{R}")
        .Type("Enchantment")
        .InSets("Urza's Saga")
        .Text("Creatures can't block.")
        .FlavorText("Sometimes quantity, in the absence of quality, is good enough.")
        .Timing(Timings.FirstMain())
        .Abilities(
          C.Continuous((e, c) =>
            {
              e.CardFilter = (card, source) => card.Is().Creature;
              e.ModifierFactory = c.Modifier<AddStaticAbility>(
                (m, _) => { m.StaticAbility = Static.CannotBlock; });
            }));                
    }
  }
}